
var order = require("../models/order");

insertOrder = function (opts) {
    return new Promise ((resolve, reject) => {
        order.create( opts ,function(err,doc){
            if (err) reject(err)
            else resolve()
        })
    })
}

module.exports = insertOrder